package com.yanqu.road.entity.enums;

/**
 * @author duli
 * @version 1.0
 * @date 2020/11/18 10:37
 * @Description 商场类型
 */
public enum ShopType  implements ConvertibleEnum<Integer> {

    IngotsMall(10,"元宝商城，只能通过充值购买"),

    NormalPropMall(11,"通用道具商城"),

    GoodsBagMall(12,"礼包商城"),

    TradeWarIntegralMall(13,"商战积分商城"),

    EstateWarMall(17,"乔迁风云商城"),

    SpecialMall(18,"特惠礼包，限时充值"),

    UnionMall(22,"商会商城"),

    HuntMall(23,"狩猎商店"),

    BanquetMall(28,"宴会商店"),

    SecretVolumeMall(29,"密卷商城(按照期数限购的)"),

    InnMall(34,"客栈商店"),

    WineryMall(63,"酒坊商店"),

    CricketMall(70,"促织商店"),

    CommonActivityBuyMall(100,"万能活动购买商城"),

    CommonActivityExchangeMall(101,"万能活动兑换商城"),

    RMBMallActivityMall(102,"现金礼包商城"),

    CrossTradeWarActivityMall(103,"跨服商战活动商城"),

    OreWarActivityMall(104,"盐场活动商店类型"),

    CrossRankActivityIngotMall(105,"跨服冲榜活动元宝商城"),

    CrossRankActivityRMBMall(106,"跨服冲榜活动现金商城"),
    ;

    private int intValue;

    private String name;

    ShopType(int value, String name) {
        intValue = value;
        this.name = name;
    }

    @Override
    public Integer getIntValue() {
        return intValue;
    }

    @Override
    public String getName() {
        return name;
    }

    public static ShopType forValue(int value) {
        for (ShopType type : ShopType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }

}
